//
//  JBDiscoverViewController.m
//  OCsinaBlog
//
//  Created by jobo on 16/4/24.
//  Copyright © 2016年 jobo. All rights reserved.
//

#import "JBDiscoverViewController.h"
#import "JBSearchBarView.h"
@interface JBDiscoverViewController ()

@end

@implementation JBDiscoverViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    //设置搜索框
    JBSearchBarView *seachBar = [JBSearchBarView searchBar] ;
    //设置seachBar 的bouns
    CGFloat screenWidth = [UIScreen mainScreen].bounds.size.width - 20 ;
    
    CGRect seachBarBounds = seachBar.bounds ;
    
    seachBarBounds.size.width = screenWidth ;
    
    seachBar.bounds = seachBarBounds ;
    
    
    
    self.navigationItem.titleView = seachBar ;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
